package cn.fsd.exception;

import cn.fsd.expection.AppExceptionCodeMsg;

public enum GateWayExceptionCodeMsg implements AppExceptionCodeMsg {

  USERNAME_NOT_EXISTS(500, "用户名不存在"),
  REQUEST_PARAM_EMPTY(500, "请求参数为空"),

  USERNAME_EMPTY(500,"用户名不能为空"),
  PASSWORD_EMPTY(500,"密码不能为空"),
  USERNAME_ERROR(500,"用户名错误"),
  PASSWORD_ERROR(500,"密码错误"),
  TOKEN_EMPTY(500,"token为空"),

  USER_NAME_EXISTS(500,"用户已存在"),
  USER_LEVEL_ERROR(500,"用户级别有误"),
  DEPT_ID_EMPTY(500,"dept_id不能为空"),
  CUR_USER_EMPTY(500,"添加账户操作员用户名不能为空"),
  CUR_USER_NOT_EXIST(500,"添加账户操作员不存在"),
  INSUFFICIENT_PERMISSIONS(500,"无添加账户权限");

  private final Integer code;
  private final String msg;

  public Integer getCode() {
    return code;
  }

  public String getMsg() {
    return msg;
  }

  GateWayExceptionCodeMsg(Integer code, String msg) {
    this.code = code;
    this.msg = msg;
  }
}
